package com.simple.dto;

import com.simple.pojo.Bank;
import com.simple.pojo.Fund;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Data
public class AmountDTO {
    private Integer id;

    private Integer userId;
    private String username;
    private Double wx;
    private Double zfb;
    private Double bank;
    private Double wxFund;
    private Double zfbFund;
    private Double loan;
    private Double totalMoney;

    private List<Bank> banks;
    private List<Fund> wxFunds;
    private List<Fund> zfbFunds;
    private String createTime;
    private String createUser;
    private String updateTime;
    private String updateUser;
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Integer pageSize = 5;
    private Integer pageNum = 1;


}